package control;

import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;

import javax.swing.AbstractAction;

import view.components.Icons;

import domain.Library;


@SuppressWarnings("serial")
public class ExportLoanRemindersAction extends AbstractAction{
	private ExportLoanRemindersHandler handler = new ExportLoanRemindersHandler();

	public ExportLoanRemindersAction() {
		super("Mahnungen exportieren", Icons.EXPORT_PDF);
		putValue(MNEMONIC_KEY, KeyEvent.VK_E);
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		handler.startExport(Library.getInstance().getCustomers());
	}
	
}